package com.bean;

import java.util.Date;

public class User {
    private int id;
    private String username;
    private String question;
    private String contact;
    private String address;
    private Date date;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", question='" + question + '\'' +
                ", contact='" + contact + '\'' +
                ", address='" + address + '\'' +
                ", date=" + date +
                '}';
    }

    public User() {
    }

    public User(String username, String question, String contact, String address, Date date) {
        this.username = username;
        this.question = question;
        this.contact = contact;
        this.address = address;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
